<?php

class Home extends CI_Controller {

    private static $layout_data = array();
    private static $home_data = array();

    public function __construct()
    {
        parent::__construct();

        self::$home_data = array();
        self::$layout_data['navigation'] = 'Oneway Backend';
    }

    public function index()
    {
        //Load comment model
        $this->load->model('comment_model');
        
        //Get top comment unverify
        self::$home_data['arrComment'] = $this->comment_model->getListCommentByStatus(0, 5, 0);
        
        self::$layout_data['content'] = $this->load->view('home/index', self::$home_data, TRUE);
        $this->load->view('layouts/main', self::$layout_data);
    }
}
